package cn.jn.lhm.order.client;

import cn.jn.lhm.utils.order.UcOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author LHM
 * @Tips 热爱每一天，奋斗每一天
 * @date 2020/6/15 - 20:40
 */
@Service
@FeignClient(value = "uc-service")
public interface UcOrderClient {

    /**
     * RPC远程调用
     * @param userId 用户ID
     * @return UcOrder
     */
    @GetMapping("/uc/get/order/info/{userId}")
    public UcOrder getUserInfoByUserId(@PathVariable("userId")String userId);
}
